<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddInnovateToPatentAppliesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('patent_applies', function (Blueprint $table) {
            $table->smallInteger('te_innovate')->default(0)->comment('技术创新度');

            $table->tinyInteger('retrieval_status')->default(0);
            $table->text('retrieval_remark')->nullable()->comment('检索结论');

            $table->tinyInteger('evaluation_status')->default(0)->comment('评估状态');
            $table->text('evaluation_remark')->nullable()->comment('评估意见');
            $table->integer('expert_id')->default(0)->comment('专家ID');

            $table->float('score')->default(0)->comment('评分');
            $table->text('assessment')->nullable()->comment('评估信息');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('patent_applies', function (Blueprint $table) {
            //
        });
    }
}
